import uniRequest from 'uni-request';
import store from '../store'
import SHA1 from '../utils/SHA1'
const BAES_URI = store.getters.baseApiUrl
let now = Date.now();
let appKey = SHA1("A6099946446807" + "UZ" + "742CA739-68A4-3302-CC32-E5325CDE09F3" + "UZ" + now) + "." + now
console.log('=========appKey========')
console.log(now)
console.log(appKey)
//配置基本信息
uniRequest.defaults.baseURL = BAES_URI;
uniRequest.defaults.headers.common['X-APICloud-AppId'] = 'A6099946446807';
uniRequest.defaults.headers.common['X-APICloud-AppKey'] = appKey;

export default uniRequest